#pragma once

#include <iostream>
#include <string>
#include <cstdio>
#include<sys/ipc.h>
#include<sys/shm.h>
const std::string gpath = "/home/weiliang/lesson/lesson24";
int gprojId = 0x6666;
int gshmsize = 4096;

std::string ToHex(key_t k)
{
    char buffer[1024];
    snprintf(buffer,sizeof(buffer),"%x",k);
    return buffer;
}